import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import MyWorld from "../components/MyWorld";
import MyButton from "../components/MyButton";
import MyTable from "../components/MyTable";
import MyHomework from "../components/MyHomework";
import MyFrom from "../components/MyFrom";
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/myworld',
      name: 'MyWorld',
      component: MyWorld
    },{
      path: '/mybutton',
      name: ' MyButton',
      component: MyButton
    },{
      path: '/mytable',
      name: ' MyTable',
      component: MyTable
    },{
      path: '/myHomework',
      name: ' MyHomework',
      component: MyHomework
    },{
      path: '/myFrom',
      name: ' MyFrom',
      component: MyFrom
    },
  ]
})
